package com.iursp.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.iursp.domain.LoginType;

/**
 * 
 * @ClassName:  SecurityProperties   
 * @Description:验证码Security 存入redis设置 
 * @author: ruiwu
 * @date:   2018年6月25日 下午6:33:32   
 *
 */
@ConfigurationProperties(prefix = "validation.security") //该类会读取配置文件中所有以validation.security开头的配置项
public class SecurityProperties {

    private String signOutUrl = "/validation-signOut.html";

    private LoginType loginType = LoginType.JSON;

    /**
     * 验证码配置
     */
    private ValidateCodeProperties code = new ValidateCodeProperties();

    /**
     * 记住我的有效时间秒
     */
    private int rememberMeSeconds = 60 * 60 * 24 * 7;

    /**
     * session配置过期和并发登录
     */
    private SessionProperties session = new SessionProperties();
    
	public String getSignOutUrl() {
		return signOutUrl;
	}

	public void setSignOutUrl(String signOutUrl) {
		this.signOutUrl = signOutUrl;
	}

	public LoginType getLoginType() {
		return loginType;
	}

	public void setLoginType(LoginType loginType) {
		this.loginType = loginType;
	}

	public ValidateCodeProperties getCode() {
		return code;
	}

	public void setCode(ValidateCodeProperties code) {
		this.code = code;
	}

	public int getRememberMeSeconds() {
		return rememberMeSeconds;
	}

	public void setRememberMeSeconds(int rememberMeSeconds) {
		this.rememberMeSeconds = rememberMeSeconds;
	}

	public SessionProperties getSession() {
		return session;
	}

	public void setSession(SessionProperties session) {
		this.session = session;
	}

}


